/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gra.mechanika.Obiekty;

import java.io.File;

/**
 *
 * @author Grog
 */
public class Statek extends Obiekt {

    private static String local = "src/model/";
    private static String rozszerzenie = ".obj";
    private static String URL = "";

    
    
    public Statek(String name) {
        setName(name);
        
    }

public void stworz(float x, float y, float z) {
        setX(x);
        setY(y);
        setZ(z);
        URL = local + getName() + rozszerzenie;
        f = new File(URL);
        stworz_model();   

    }
    
    
    
    public void ruchPrzod(){
    
        float z = getZ();
        setZ(z-getSpeed());
    
    }
    
    
    
        
}
